package com.zhou.jiancai.activity;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;

import com.zhou.jiancai.R;
import com.zhou.jiancai.ui.steptellsui.ColorArcProgressBar;

/**
 * Created by Administrator on 2017/6/9.
 */

public class StepsTellActivity extends AppCompatActivity{

    private ColorArcProgressBar capb2;
    private ColorArcProgressBar capb3;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.step_tell_activity);
        init();

    }

    private void init() {
      Button start1= (Button) findViewById(R.id.bt_start);
      Button start2= (Button) findViewById(R.id.bt_start2);
      Button start3= (Button) findViewById(R.id.bt_start3);
        final ColorArcProgressBar capb1= (ColorArcProgressBar) findViewById(R.id.bar1);
        capb2 = (ColorArcProgressBar) findViewById(R.id.bar2);
        capb3 = (ColorArcProgressBar) findViewById(R.id.bar3);
        start1.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                capb1.setCurrentValues(100);
            }
        });
        start2.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                capb2.setCurrentValues(80);
            }
        });
        start3.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                capb3.setCurrentValues(80);
            }
        });
    }
}
